package com.delivery.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 订单明细表(OrderDetail)实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@ApiModel("订单明细")
public class OrderDetail {
    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("名称")
    private String name;

    @ApiModelProperty("图片地址")
    private String image;

    @ApiModelProperty("订单ID")
    private Long orderId;

    @ApiModelProperty("菜品ID")
    private Long dishId;


    @ApiModelProperty("菜品口味")
    private String dishFlavor;

    @ApiModelProperty("数量")
    private Integer number;

    @ApiModelProperty("套餐ID")
    private Long setmealId;


    @ApiModelProperty("金额")
    private BigDecimal amount;
}